//package guo.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import java.util.concurrent.Executors;
//import java.util.concurrent.LinkedBlockingQueue;
//import java.util.concurrent.ThreadPoolExecutor;
//import java.util.concurrent.TimeUnit;
//
//@Configuration
//public class ThreadPoolExecutorCom {
//
//    private String name = "23";
//
//    public void test(){
//        System.out.println("text");
//    }
//
//    @Bean
//    public ThreadPoolExecutor getThreadPoolExecutor(ThreadPoolConfig config){
//        return new ThreadPoolExecutor(config.getCorePoolSize(),config.getMaximumPoolSize(),config.getKeepAliveTime(), TimeUnit.SECONDS,
//                new LinkedBlockingQueue<>(100), Executors.defaultThreadFactory(),
//                new ThreadPoolExecutor.AbortPolicy());
//    }
//}
